Hi,
Hoping this is the right place to ask. We have a program that can open a .msg file by using the CreateItemFromTemplate() function, and then retrieve the text as html using the HTMLBody property.
Now if you open the msg file in Outlook it looks fine (and looks as though it is just plain text). But in the html returned by the HTMLBody property the first line of text always gets surrounded by an <A> tag and looks like this:
<P><A NAME=""><FONT SIZE=1 FACE="Times New Roman">Hi person</FONT></A>
This is odd, and causing an issue as this <A> tag is obviously getting interpreted as you would expect by our text viewer control and displayed as a hyperlink.
What is going on? And is there a way to stop it?
(Obviously could parse out <A> tags with an empty name or that have no href attribute, but would still like to identify what's going on here and if possible find a solution or option in Outlook that can prevent this and thereby avoid/delay requiring a software patch!)
- Moved by Lanlan HuangMicrosoft contingent staff Friday, February 27, 2015 6:12 AM